import request from '@/utils/request'

export function addRoleApi(params) {
  return request.post('/system/role/addRole', params)
}

export function modifyRoleApi(params) {
  return request.put('/system/role/modifyRole', params)
}

export function getRoleListApi(params) {
  return request.get('/system/role/getRoleList', { params })
}

export function getActiveRolesApi(params) {
  return request.get('/system/role/getActiveRoles', { params })
}

export function deleteRoleApi(params) {
  return request.delete('/system/role/deleteRole', { params })
}
